<?php
namespace app\controllers;

use yii\web\Controller;

use Yii;
use app\models\Uc_user;

class QulificationController extends Controller{
//	public $layout=false;

    public function actionShow(){

        // echo 1;
        if(!empty($_COOKIE['user_id'])){
            $user_id = $_COOKIE['user_id'];
            $user = Uc_user::find()->where([
                'user_id' => $user_id,
                'del_flag' => 0
                ])->one();

            $view = Yii::$app->view;
            $view->params['title'] = "资质申请";
            PrlikeController::setView($user);

            return $this->render('qulification',  ['user'=>$user]);

        }else{
            echo "<script>alert('您还未登录 请先登录')</script>";
            echo "<script>location.href='http://localhost/chuangwu/web/index.php?r=login/show'</script>";

        }

       		
	}
}